package com.example.metadatatest.CustomizeExecutor;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEvent;

/**
 * CustomizeEvent
 *
 * 自定义事件
 *
 * @blame 吴经纶
 */
@Slf4j
public class CustomizeEvent extends ApplicationEvent {
    private final String message;

    public CustomizeEvent(String message) {
        super(message);
        this.message = message;
        log.info("添加事件成功！{}" ,message);
    }

    public String getMessage() {
        return message;
    }
}
